<?php
/**
 * Created by PhpStorm.
 * User: cape
 * Date: 2017/10/10
 * Time: 13:03
 */

trait HelloWorld{
	public function syaHello(){
		echo 'Hello World!';
	}

}

class TheWorldIsNotEnough{
	use HelloWorld;
	public function sayHello(){
		echo 'Hello Universe!';
	}
}

$o = new TheWorldIsNotEnough();
$o->sayHello();













































